package cate.game.role.bag.spice.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.Role;
import cate.game.role.bag.spice.SpiceBag;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "星格 初始化数据 の 返回")
public class SpiceInitResp implements MsgOutput {

    @NoteField(value = "主角 [ 星格 ] 背包数据")
    public SpiceBag data;

    public SpiceInitResp(){

    }

    public SpiceInitResp(Role role) {
        this.data = role.getBag().spice;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.SPICE_INIT_RESP;
    }
}
